$(function () {
    var str1 = '';
    var str2 = '';
    // 运动箱包
    $.each(allData.index,function(i,v){
      $.each(v.ceshilouceng[0].yundongxiebao,function(i,v){
        str2 = `
        <a href="javascript:void(0)">
          <div class="p-img">
            <img
              src="${v.yunData.leftImg}"
              alt=""
            />
          </div>
        </a>
        <div class="p-info">
          <div class="p-name">${v.yunData.leftName}</div>
          <div class="p-desc">${v.yunData.leftDesc}</div>
        </div>
        `;
      $('.left-img').eq(0).append(str2)

      $.each(v.kuaikuai,function(i,v){
        str1 = `
        <div class="kuaikuai">
          <a href="javascript:void(0)">
            <div class="p-name">${v.kuaiName}</div>
            <div class="p-desc">${v.kuaiDesc}</div>
            <div class="p-img">
              <img
                src="${v.kuaiImg}"
                alt=""
              />
            </div>
          </a>
        </div>
        `;
        $('.floor-right').eq(0).append(str1);
      })
      $.each(v.bobobo,function(i,v){
        str2 = `
        <div class="bobobo">
          <a href="javascrip:void(0)">
            <div class="p-name">${v.boName}</div>
            <div class="p-desc">${v.boDesc}</div>
          </a>
          <div class="p-img">
            <img
              src="${v.boImg}"
              alt=""
            />
          </div>
        </div>
        `;
        $('.floor-bottom').eq(0).append(str2);
      })

      })
    })

    //热门手机
    $.each(allData.index,function(i,v){
        $.each(v.ceshilouceng[0].remenshouji,function(i,v){
            str2 = `
        <a href="javascript:void(0)">
          <div class="p-img">
            <img
              src="${v.reData.leftImg}"
              alt=""
            />
          </div>
        </a>
        <div class="p-info">
          <div class="p-name">${v.reData.leftName}</div>
          <div class="p-desc">${v.reData.leftDesc}</div>
        </div>
        `;
      $('.left-img').eq(1).append(str2)
          $.each(v.rekuaikuai,function(i,v){
            str1 = `
            <div class="kuaikuai">
              <a href="javascript:void(0)">
                <div class="p-name">${v.rekuaiName}</div>
                <div class="p-desc">${v.rekuaiDesc}</div>
                <div class="p-img">
                  <img
                    src="${v.rekuaiImg}"
                    alt=""
                  />
                </div>
              </a>
            </div>
            `;
            $('.floor-right').eq(1).append(str1);
          })
          $.each(v.rebobobo,function(i,v){
            str2 = `
            <div class="bobobo">
              <a href="javascrip:void(0)">
                <div class="p-name">${v.reboName}</div>
                <div class="p-desc">${v.reboDesc}</div>
              </a>
              <div class="p-img">
                <img
                  src="${v.reboImg}"
                  alt=""
                />
              </div>
            </div>
            `;
            $('.floor-bottom').eq(1).append(str2);
          })
        })
      })

      var str3 = `
            <div>
                <a href="javascript:void(0)">
                  <img src="https://x.dscmall.cn//storage/data/gallery_album/visualDefault/homeIndex_010.jpg" alt="">
                </a>
              </div>
              <div>
                <a href="javascript:void(0)">
                  <img src="https://x.dscmall.cn//storage/data/gallery_album/visualDefault/homeIndex_010.jpg" alt="">
                </a>
              </div>
              <div>
                <a href="javascript:void(0)">
                  <img src="https://x.dscmall.cn//storage/data/gallery_album/visualDefault/homeIndex_010.jpg" alt="">
                </a>
              </div>
              <div>
                <a href="javascript:void(0)">
                  <img src="https://x.dscmall.cn//storage/data/gallery_album/visualDefault/homeIndex_010.jpg" alt="">
                </a>
              </div>
              <div>
                <a href="javascript:void(0)">
                  <img src="https://x.dscmall.cn//storage/data/gallery_album/visualDefault/homeIndex_010.jpg" alt="">
                </a>
              </div>
      `;
      $('.floor-bottom2').append(str3);

  });